import Vue from "vue";
import Router from "vue-router";
const _import = require("./_import_" + process.env.ROUT_MODE);
import Full from "@/containers/Full.vue";
import Full2 from "@/containers/Full2.vue";
import Full3 from "@/containers/Full3.vue";
import marketingCenter from "@/router/marketing-center";
import operateManagement from "@/router/operate-management";
import orderCenter from "@/router/order-center";
import financialCenter from "@/router/financial-center";
import dataCenter from "@/router/data-center";
import appManagement from "@/router/app-management";
import trainingCenter from "@/router/training-center"
Vue.use(Router);
export default new Router({
    routes: [{
        path: "/",
        name: "首页",
        component: Full,
        children: [
            marketingCenter,operateManagement,orderCenter,financialCenter,dataCenter,appManagement,trainingCenter
        ]
    },
    {
        path: "/home",
        name: "首页2",
        component: Full2,
        children: [{
            path: "personal-center",
            name: "个人中心",
            component: _import("personal-center/index")
        },
        {

            path: "select-model",
            name: "select-model",
            component: _import("select-model/index")
        }
        ]
    },
    {
        path: "/application",
        name: "首页3",
        component: Full3,
        redirect: "/application/entry-application",
        children: [{
            path: "entry-application",
            name: "平台入驻中心",
            component: _import("entry-application/index")
        }, {
            path: "business-claim",
            name: "商户认领",
            component: _import("business-claim/index")
        }]
    },
    {
        path: "/login",
        name: "login",
        component: _import("login/login")
    }
    ]
});
